import request from "../request";


//获取员工列表
const getUesrList = async (params: any) => {
    return await request.post('/api/staff/getsStaffPage', JSON.stringify(params), { showLoading: false })
}

//是否禁用
const editUser = async () => {
    return await request.get('/api/staff/changeStaffIsProhibitType', { showLoading: true })
}

//改变员工是否职业
const changeType = async () => {
    return await request.get('/api/staff/changeStaffOccupationType', { showLoading: true })
}

export {
    getUesrList,
    editUser,
    changeType
}